package com.huawang.mdesign.model.service.request;

import com.huawang.business.constants.ParamErrorConstants;
import io.swagger.v3.oas.annotations.media.Schema;
import com.huawang.business.dto.ProjectIdDTO;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Schema(description = "模型全量检入检出")
@Data
public class ModelCheckDTO extends ProjectIdDTO {

    @NotBlank(message = ParamErrorConstants.NO_PROJECT_ID)
    private String projectId;

    @Schema(title = "true: 检出，false:检入")
    @NotNull(message = ParamErrorConstants.NO_VALUE)
    private Boolean value;
}
